/*
 PMProfileManagementViewController.h
 Date Created: February 22, 2010
 
 Author: Frank Lau <flaua@sfu.ca>
 
 Copyright (C) 2010 Green-Power
 
 URL: http://code.google.com/p/green-power
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 3 of the License, or
 (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 $Id$
 */

#import <UIKit/UIKit.h>
#import "PMProfile.h"
#import "PMProfileList.h"
#import "PMProfileManagementTableViewController.h"
#import "PMCreateProfileViewController.h"

/**
 * Responsible for managing view where uses can add/delete profiles and change 
 * active profiles.
 *
 * Also serves as a delegate for UITableView used for displaying profile lists.
 */
@interface PMProfileManagementViewController : UIViewController<UITableViewDelegate> {
  UILabel *activeProfileLabel;
  PMProfileList *profileList;	
  
  PMProfile *lastActiveProfile;
	PMProfileManagementTableViewController *profileManagementTableViewController;
}

@property (nonatomic, retain) PMProfileList *profileList;
@property (nonatomic, retain) IBOutlet UILabel *activeProfileLabel;
@property (nonatomic, retain) IBOutlet PMProfileManagementTableViewController *profileManagementTableViewController;

/**
 * Initialize the profile management view with a profile list that it should
 * manage.
 *
 * \param profileList The profile list to manage
 */
- (PMProfileManagementViewController *)initWithProfileList:(PMProfileList *)profileList;


/**
 * Show the create profile view
 */
- (IBAction)showCreateProfile;

@end
